<template>
  <div class="login-container">
    <vue-particles
      class="login-bg"
      color="#39AFFD"
      :particleOpacity="0.7"
      :particlesNumber="100"
      shapeType="circle"
      :particleSize="4"
      linesColor="#8DD1FE"
      :linesWidth="1"
      :lineLinked="true"
      :lineOpacity="0.4"
      :linesDistance="150"
      :moveSpeed="3"
      :hoverEffect="true"
      hoverMode="grab"
      :clickEffect="true"
      clickMode="push"
    >
    </vue-particles>

    <div class="login-box">
      <div class="logo-box">
        <div>
          <a class="logo-title">
            <img :src="siteData.backLogo" class="logo-img" />
            <span class="site-title">{{ siteData.siteName }}</span>
          </a>
        </div>
      </div>

      <app-main />
    </div>

    <div class="footer" v-html="siteData.copyRight" />
  </div>
</template>

<script>
import { mapGetters } from "vuex";
import AppMain from "@/layout/components/AppMain";

export default {
  name: "LoginLayout",
  components: { AppMain },
  computed: {
    ...mapGetters(["siteData"]),
  },
};
</script>

<style lang="scss" scoped>
@import "~@/styles/login.scss";
</style>
<style>
.login-bg {
  width: 100%;
  height: 100%;
  position: absolute;
}
</style>
